package org.lagou.edu.service;

import com.alibaba.dubbo.config.annotation.Reference;
import org.lagou.edu.rpc.IStockService;
import org.springframework.stereotype.Service;

/**
 * @author: shiding
 * @data: 2022/7/23 16:16
 **/
@Service
public class StockServiceImpl implements StockService {

    @Reference
    private IStockService stockService;

    @Override
    public Long queryStock(Long shopId) {
        return stockService.queryStock(shopId);
    }
}
